added a check for date, before assuming it existed

because everyone knows what mary poppins says about assume