Tweaking last commit (using better logic test in if statement)