Replaced check with one-liner.