Removed unused method
Check that argument #9 which is optional is a number
fix an exception when number was Nan