Maybe we can use a new variable for this object and reuse it later in both if's?