Check for each ray whether there was collide or not