Switch conditional order since 'void' is a primitive class.
Merge pull request #109 from square/jw/check-void-first

Switch conditional order since 'void' is a primitive class.