Change back to use is_int() as function instead of is_integer(), as per Jan Tvrdík's request @github