Don't check twice when once will do.

This is a small optimization to save a little bit of processing on slower devices.