Fix: condition before pushing the object.