Yup.. We need more. Maybe a helper method to validate these attributes. Having all the conditions at this place would make the code cluttered.