Avoid multiple conditionals