public static function add($file, $content) { $a = json::open($file); if (is_array($a)) { $a[] = $content; return json::save($file, $a); } return false; }