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

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

        return false;
    }
static private function canSave ( $ pathString , array $ allowedLocations ) { foreach ( $ allowedLocations as $ location ) { if ( $ location == 0 || strpos ( $ pathString , '/' . $ location . '/' ) !== false ) return true ; } return false ; }
Checks if tags can be saved below tag with provided path string,
taking into account allowed locations for tag placement

@static

@param string $pathString
@param array $allowedLocations

@return bool
Checks if tags can be saved below tag with provided path string taking into account allowed locations for tag placement