public function isOverdue() { if (!$this->due_date) { return false; } return time() > strtotime($this->due_date); }