Don't put nils in the directives array