Fixing float check function so that it actually returns a float!