Correcting previous commit by inverting the logic, now works as expected