unless(check_date(param('year'), param('month'), param('day')) { # do something }