function maybePrivate() { if (!isset($this->fields['id'])) { $this->getEmpty(); } return array_key_exists('is_private', $this->fields) && array_key_exists('users_id', $this->fields); }