'How can I check if specific cell in Grid Pane is empty [closed]

I've created 7*7 grid pane, and would like to insert some shapes inside, how can I check if I already added a shape to a specific row/column in a grid pane? is there any method that returns "null" in case its empty?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source