Hi,
In this tutorial, you would have a feedback if the goal can be reached or not. To know if the cell is empty before sending a goal, you would need to subscribe to the /map (
nav_msgs/OccupancyGrid), and look yourself if the cell is empty before sending the goal.
On
ROS answers, you could get more feedback for ROS general questions.
cheers,
Mathieu