protected static function _getDataFromArray(&$array, $key = false, $default = null, $allowHtmlTags = false) {
        if ($key === null)
            return !$allowHtmlTags ? self::_secure($array, $allowHtmlTags) : $array;
        else {
            if (!array_key_exists($key, $array))
                return $default;

            return !$allowHtmlTags ? self::_secure($array[$key], $allowHtmlTags) : $array[$key];
        }
    }