public static function url($linkUrl) { try { new Uri($linkUrl); } catch (InvalidArgumentException $e) { Validate::setError("not_a_valid_web_address"); return false; } return self::stringLength($linkUrl, 1, LinkRepository::MAX_URL_LENGTH); }