how come this does not work “!_is_404”

I have this code on my sidebar and instead of NOT outputting the code on a 404 page is outputs all children pages throughout my site…how can I stop this? — Is there another way of doing “NOT EQUAL TO 404, or this !is_404”