Restructured initial 'if' statement for clarity

This was changed due to feedback by @benschwarz because the '!'(not) operator was easily missed and this method leaves less ambiguity to the intent of this file.