Added allowEmpty attribute so that empty does not get seen as 0