These nested ifs can be collapsed down to a single statement using `&&`s