public static function check($config) { if (self::$key && !empty($config['allow_key']) && !in_array(self::$key, $config['allow_key'])) { return false; } return true; }