private function aliasMatch(array $urlParts, $strictParsing = false)
    {
        if ($strictParsing) {
            $query = (new MenuQuery())
                ->where([self::FIELD_ALIAS => implode('/', $urlParts)])
                ->with('hidden')
                ->andWhere([self::FIELD_TYPE => self::ITEM_TYPE_MODULE])
                ->one();

            if ($query) {
                return $query;
            }

            return (new MenuQuery())
                ->where([self::FIELD_ALIAS => implode('/', $urlParts)])
                ->with('hidden')
                ->andWhere([self::FIELD_IS_URL_STRICT_PARSING_DISABLED => 1])
                ->one();
        }
        return (new MenuQuery())
            ->where([self::FIELD_ALIAS => implode('/', $urlParts)])
            ->with('hidden')
            ->one();
    }
private function aliasMatch(array $urlParts, $strictParsing = false)
    {
        if ($strictParsing) {
            $query = (new MenuQuery())
                ->where([self::FIELD_ALIAS => implode('/', $urlParts)])
                ->with('hidden')
                ->andWhere([self::FIELD_TYPE => self::ITEM_TYPE_MODULE])
                ->one();

            if ($query) {
                return $query;
            }

            return (new MenuQuery())
                ->where([self::FIELD_ALIAS => implode('/', $urlParts)])
                ->with('hidden')
                ->andWhere([self::FIELD_IS_URL_STRICT_PARSING_DISABLED => 1])
                ->one();
        }
        return (new MenuQuery())
            ->where([self::FIELD_ALIAS => implode('/', $urlParts)])
            ->with('hidden')
            ->one();
    }
private function aliasMatch ( array $ urlParts , $ strictParsing = false ) { if ( $ strictParsing ) { $ query = ( new MenuQuery ( ) ) -> where ( [ self :: FIELD_ALIAS => implode ( '/' , $ urlParts ) ] ) -> with ( 'hidden' ) -> andWhere ( [ self :: FIELD_TYPE => self :: ITEM_TYPE_MODULE ] ) -> one ( ) ; if ( $ query ) { return $ query ; } return ( new MenuQuery ( ) ) -> where ( [ self :: FIELD_ALIAS => implode ( '/' , $ urlParts ) ] ) -> with ( 'hidden' ) -> andWhere ( [ self :: FIELD_IS_URL_STRICT_PARSING_DISABLED => 1 ] ) -> one ( ) ; } return ( new MenuQuery ( ) ) -> where ( [ self :: FIELD_ALIAS => implode ( '/' , $ urlParts ) ] ) -> with ( 'hidden' ) -> one ( ) ; }
helper method to see if the request url can be found in the active container.

@param array $urlParts
@return bool|Item
helper method to see if the request url can be found in the active container .