public static function isRelativePath($path) {
        if ($path[0] == '~' || $path[0] == '.') {
            return true;
        }

        if ($path[0] == '/' && !is_file($path) && !is_dir($path)) {
            return true;
        }

        return false;
    }
public static function isRelativePath($path) {
        if ($path[0] == '~' || $path[0] == '.') {
            return true;
        }

        if ($path[0] == '/' && !is_file($path) && !is_dir($path)) {
            return true;
        }

        return false;
    }
public static function isRelativePath ( $ path ) { if ( $ path [ 0 ] == '~' || $ path [ 0 ] == '.' ) { return true ; } if ( $ path [ 0 ] == '/' && ! is_file ( $ path ) && ! is_dir ( $ path ) ) { return true ; } return false ; }
Checks whether the specified path is relative or not.

@param bool $path Path to check.

@return bool
Checks whether the specified path is relative or not .