public function isLeapYear($year) { $year = $this->digitCheck($year); $dt = new DateTime(); $dt->setDate($year, 1, 1); return (bool) $dt->format('L'); }