static private function canSave( $pathString, array $allowedLocations )
    {
        foreach ( $allowedLocations as $location )
        {
            if ( $location == 0 || strpos( $pathString, '/' . $location . '/' ) !== false )
                return true;
        }

        return false;
    }