A guard clause for input validations