public function checkLast() { $WsUsers = new WsUsers(); $WsUsers->findAll(); if ($WsUsers->getRowCount() == 1) { $WsUsers->setThis($WsUsers->getResult()[0]); $WsUsers->setUser_level(3); $WsUsers->update(); $WsUsers->findAll(); } return $WsUsers; }