Replace type with _.isXXX