def is_holiday(employee, date=None):
 holiday_list = get_holiday_list_for_employee(employee)
 if (not date):
  date = today()
 if holiday_list:
  return ((frappe.get_all(u'Holiday List', dict(name=holiday_list, holiday_date=date)) and True) or False)

def is_holiday ( employee , date = None ) : holiday_list = get_holiday_list_for_employee ( employee ) if ( not date ) : date = today ( ) if holiday_list : return ( ( frappe . get_all ( u'Holiday List' , dict ( name = holiday_list , holiday_date = date ) ) and True ) or False )
returns true if given employee has an holiday on the given date .