Fix foreach error on line 37 when no atts are provided