Fixed bug where simply checking for a variable fails if the variable is 0.0 which is falsy