protected function checkEnabledExtensions($extensions)
    {
        $extensions = (array)$extensions;
        if (empty($extensions)) {
            return true;
        } else {
            return (count(array_intersect($this->enabledExtensions, $extensions)) == count($extensions));
        }
    }
protected function checkEnabledExtensions($extensions)
    {
        $extensions = (array)$extensions;
        if (empty($extensions)) {
            return true;
        } else {
            return (count(array_intersect($this->enabledExtensions, $extensions)) == count($extensions));
        }
    }
protected function checkEnabledExtensions ( $ extensions ) { $ extensions = ( array ) $ extensions ; if ( empty ( $ extensions ) ) { return true ; } else { return ( count ( array_intersect ( $ this -> enabledExtensions , $ extensions ) ) == count ( $ extensions ) ) ; } }
Check whether the given extensions are enabled.

@param string|array $extensions Single or multiple extensions names.
@return bool Operation result.
Check whether the given extensions are enabled .