Avoid calling expensive methods before checking if we need to

There’s no need to create the full $record structure before checking for handlers. This can be called inside a loop, and Datetime::createFromFormat() is very expensive.
Ah I see what you mean now. Ok in that case I guess leave it as is, it probably doesn't matter much either way anyway.