[REFACTOR] small condition fix

removing double if in favor of an
&& in the conditional, i guess i was tired
when i wrote that