Store the result of this check in a variable since you need to know this later too.