format('N'); return in_array($dayOfWeek, [6, 7]); } catch (Exception $e) { // Handle invalid date strings return false; } } }