unless etypes.blank?  

would be one less condition :)