find($this->attributes['userid']); } public function isValid(): bool { if ($this !== null && $this->user() !== null && $this->user()->is_banned === 0) { return true; } return false; } }