check for empty times as well
fix times check so that it actually works