modify is_real to not fail for non-number