Front-end should if a layer is timeEnabled, this shouldn't be necessary.
You could use a "try except" instead.