You have to search them. A bit similar to Test intersection of two game objects (Phaser 3) with rectangle.contains(x, y).
rectangle.contains(x, y)