I did it this way only to "fail fast", since the type is a much more expensive test.  But it probably doesn't matter if it's clearer to switch it around.