Added missing if statement expression