It's better to use 'if' before push_back