Using a more efficient check.