public function setPassword($password) {
    if (is_array($password)) {
      if ($password['password'] == NULL) return $this;
      $this->hashPassword($password['password']);
    } else {
      if ($password == NULL) return $this;
      $this->password = $password;
    }
    return $this;
  }