Remove if statement from template