Updating if conditional