Fix wrong check in previous commit.