avoid typeof object