Return NULL when empty formula is given