public static function validate($data) { if (empty($data['user']) || empty($data['ids'])) { throw new Exception('oSRS Error - User/IDs required'); } else { return true; } }