Only need to retrieve `height()` inside condition.