isWeekEnd php function added