Add handy collision detection functions