Use underscore instead of explicit type check