Wrong variable used, should be: `!is_int($loops)`