use isFinite()