exists()) { exitWithJson(["status" => "ERROR", "msg" => $Strings->get("user does not exist", false), "user" => $VARS['manager']]); } if (!$employee->exists()) { exitWithJson(["status" => "ERROR", "msg" => $Strings->get("user does not exist", false), "user" => $VARS['employee']]); } if ($database->has('managers', ['AND' => ['managerid' => $manager->getUID(), 'employeeid' => $employee->getUID()]])) { exitWithJson(["status" => "OK", "managerof" => true]); } else { exitWithJson(["status" => "OK", "managerof" => false]); }