added is_empty method to heap