Before this patch check_if_png() comment was kind of misleading because it talked about the behaviour of png_sig_cmp() which isn't the same as check_if_png().