That layout would also make it harder to eliminate the null check. With the current x.isInstanceOf[checkTp] it's easy enough to eliminate the null, I just need to do it.