protected function checkOptionalPath($assetPath)
    {
        if (0 === strpos($assetPath, '?')) {
            $assetPath = ltrim($assetPath, '?');
            $this->setOptional(true);
        }

        return $assetPath;
    }
protected function checkOptionalPath($assetPath)
    {
        if (0 === strpos($assetPath, '?')) {
            $assetPath = ltrim($assetPath, '?');
            $this->setOptional(true);
        }

        return $assetPath;
    }
protected function checkOptionalPath ( $ assetPath ) { if ( 0 === strpos ( $ assetPath , '?' ) ) { $ assetPath = ltrim ( $ assetPath , '?' ) ; $ this -> setOptional ( true ) ; } return $ assetPath ; }
Check optional asset path.

@param string $assetPath The asset path

@return string The asset path without '?'
Check optional asset path .