This doesn't seem like the cleanest way to write this condition.