null check before pushing