Perhaps to diffpy.utils.typecheck module? - [ ] check if there is any existing Python package with "isfloat" functionality.