no need for nested conditionals here, just combine them using `and`