Simplify condition, only call alias one time