Checks a single float for validity. Separate from the extension method to avoid throwing exceptions deep in a call tree.