Si el modulo existe, entonces devuelve true, en cualquier otro caso false.

@param $string string Titulo del modulo
@return bool
337235
public static function exists($string)
    {
        $instance = self::getInstance();
        foreach ($instance->getModules() as $module) {
            if ($module->title === $string) {
                return true;
            }
        }
        return false;
    }
159972
public static function isLowerSnakeCase($string)
    {
        if (strcmp($string, strtolower($string)) !== 0) {
            return false;
        }

        if (strpos($string, ' ') !== false) {
            return false;
        }

        return true;

    }
1165604
public static function isEmpty($string)
    {
        if (!self::isValid($string) &&
            null !== $string
        ) {
            return false;
        }

        return ($string === null || $string === '');
    }
290500
public function match($string)
    {

        $isMatch = preg_match($this->getRegularExpression(), $string, $matches);

        if (!$isMatch)
            return false;

        $vars = [];
        if (!empty($matches))
            foreach ($matches as $name => $value)
                if (is_string($name) && !empty($value))
                    $vars[$name] = $value;

        return $vars;
    }
1141305
protected function translate($string)
    {
        $translated = $this->app['translator']->get($string);

        return is_string($translated) ? $translated : $string;
    }
593214
public function append(string $string) : bool
        {
                return $this->_redis->append($this->_key, $string) > 0 ? true : false;
        }
668763
public static function containsValidJSON($string)
	{
		try
		{
			$result = json_decode($string);
		}
		catch(\Exception $e)
		{}
		
		if(self::getJSONError() === NULL)
			return true;
		else
			return false;
	}
823040
public function matches(string $string) : bool
    {
        $matches = [];

        return (bool)call_user_func_array(
            $this->_method,
            [
                sprintf("/%s/%s", $this->_expr, $this->_flags),
                $string,
                &$matches,
                $this->_pregMatchFlags ?: null,
            ]
        );
    }
984171
public static function isApplicable($string)
    {
        static $token = "\r\n\t";
        /** @noinspection UnusedFunctionResultInspection */
        strtok($string, $token);
        $secondline = strtok($token);
        return strpos($secondline, ':25:TRIODOSBANK') !== false;
    }
1082654
public static function isXml($string = '')
    {
        if ($string === '') {
            return false;
        }

        $xml_parser = xml_parser_create();
        if (!xml_parse($xml_parser, $string, true)) {
            xml_parser_free($xml_parser);
            return false;
        }

        return true;
    }
272687
public static function isClass($string)
    {
        if (is_string($string) === true) {
            $pattern = "/^(?:[^\s]+?(?:\x20){0,})+$/";
    
            return preg_match($pattern, $string) === 1;
        } else {
            
            return false;
        }
    }
1096324
final public function hasOperator($string)
    {
        $string = trim($string);
        //echo $string;
        $matches = array();
        if (!preg_match("/(\<|>|!|=|is null|BETWEEN|is not null)/i", $string, $matches)) {
            return FALSE;
        }
        return TRUE;
    }
545595
public static function strToBool($string)
    {
        if(is_bool($string))
            return $string;

        if (in_array(strtolower((string)$string), array('1', 'true', 'on', '+', 'yes', 'y')))
            return true;
        elseif (in_array(strtolower((string)$string), array('', '0','false', 'off', '-', 'no', 'n')))
            return false;

        return false;
    }
936115
protected function find($string) {
        $position = strpos($this->code, $string, $this->currentPosition);
        if ($position === false) {
            $position = $this->codeLength;
        }
        return $position;
    }
455173
public function getNumberFromString( $string )
    {
        preg_match( '/(?P<digit>\d+)/', $string, $result );
        Assertion::assertNotEmpty( $result['digit'], "Expected to find a number in '$string' found none" );
        return (int)$result['digit'];
    }
834848
public static function endsWith(string $string, $values): bool
    {
        foreach ((array) $values as $value) {
            if ($value === '' || substr($string, -strlen($value)) === $value) {
                return true;
            }
        }

        return false;
    }
455076
public function isKanji(string $string):bool{
		$i   = 0;
		$len = \strlen($string);

		while($i + 1 < $len){
			$c = ((0xff&\ord($string[$i])) << 8)|(0xff&\ord($string[$i + 1]));

			if(!($c >= 0x8140 && $c <= 0x9FFC) && !($c >= 0xE040 && $c <= 0xEBBF)){
				return false;
			}

			$i += 2;
		}

		return $i >= $len;
	}