code: public function save(IUser $user): bool
      {
          if (!$user instanceof Entity) {
              return false;
          }
  
          return entityManager()->save($user);
      }
docs: Save modified user
  
  @param IUser|User $user
  @return bool