fixed bug: string is detected as number

Thus changing the condition to `is_int($param) || is_float($param)` would make even more sense.