Optimised valid? method, used Time class methods
Added time and formatted received array