private function hasValue(array $check, string $value): bool
    {
        if (empty($check[$value])) {
            return false;
        }

        return true;
    }
private function hasValue(array $check, string $value): bool
    {
        if (empty($check[$value])) {
            return false;
        }

        return true;
    }
private function hasValue ( array $ check , string $ value ) : bool { if ( empty ( $ check [ $ value ] ) ) { return false ; } return true ; }
Check if array has a specific key and is not empty.

@param array $check
@param string $value
@return bool
Check if array has a specific key and is not empty .