protected function stripOptionalFlag(&$selectors)
    {
        $optional = false;

        $selector = end($selectors);
        $part = end($selector);

        if ($part === ['!optional']) {
            array_pop($selectors[count($selectors) - 1]);

            $optional = true;
        }

        return $optional;
    }
protected function stripOptionalFlag(&$selectors)
    {
        $optional = false;

        $selector = end($selectors);
        $part = end($selector);

        if ($part === ['!optional']) {
            array_pop($selectors[count($selectors) - 1]);

            $optional = true;
        }

        return $optional;
    }
protected function stripOptionalFlag ( & $ selectors ) { $ optional = false ; $ selector = end ( $ selectors ) ; $ part = end ( $ selector ) ; if ( $ part === [ '!optional' ] ) { array_pop ( $ selectors [ count ( $ selectors ) - 1 ] ) ; $ optional = true ; } return $ optional ; }
Strip optional flag from selector list

@param array $selectors

@return string
Strip optional flag from selector list