Factor this into a verify heap method