public static function isInternal($url)
	{
		$current = self::getInstance()->toString(['scheme', 'host']);
		$given   = self::getInstance($url);
		$base    = $given->toString(['scheme', 'host', 'path']);
		$host    = $given->toString(['scheme', 'host']);

		if (stripos($base, $current) !== 0 && !empty($host))
		{
			return false;
		}
		return true;
	}
public static function isInternal($url)
	{
		$current = self::getInstance()->toString(['scheme', 'host']);
		$given   = self::getInstance($url);
		$base    = $given->toString(['scheme', 'host', 'path']);
		$host    = $given->toString(['scheme', 'host']);

		if (stripos($base, $current) !== 0 && !empty($host))
		{
			return false;
		}
		return true;
	}
public static function isInternal ( $ url ) { $ current = self :: getInstance ( ) -> toString ( [ 'scheme' , 'host' ] ) ; $ given = self :: getInstance ( $ url ) ; $ base = $ given -> toString ( [ 'scheme' , 'host' , 'path' ] ) ; $ host = $ given -> toString ( [ 'scheme' , 'host' ] ) ; if ( stripos ( $ base , $ current ) !== 0 && ! empty ( $ host ) ) { return false ; } return true ; }
Checks if the supplied URL is internal

@param   string  $url  The URL to check
@return  boolean
Checks if the supplied URL is internal