compat with Lua 5.3.0 work2

(math.isfloat exists only in work1)