protected function canMarkMessageRead($el) { if ($this->isIntendedRecipient() && !$el->marked_as_read) { return true; } return false; }