changed prop to allowEmpty