private static function jsonCustom(array $array) { if (is_array($array)) { Session::save(); exit(json_encode($array)); } }