Added if to grammar