public static function url($url, $type = null)
    {
        switch ($type) {
            case 1:
                $type = self::$regularExpressions['url_extend'];
                break;

            case 2:
                $type = self::$regularExpressions['url_full'];
                break;

            default:
                $type = self::$regularExpressions['url'];
                break;
        }

        $bool = preg_match($type, $url);

        if (!$bool) {
            return false;
        }

        return true;
    }