There is the 'getOneObjectAtOffset' method. You can check if another actor is a given amount of pixels in x/y-directions away. You could also move some amount to the side and use the 'isTouching' method (and then move back to the original position). That would probably be the easiest way.