public function firstRecordOrDefault($default) { if (0 === $this->size()) { return $default; } return $this->firstRecord(); }