Only call checkFormat if defined