What's the simplest way I could have this do a clipping check to see if an object exists, and if an object exists, the action cannot be performed.

Code:
	globalObject = new GlobalObject(flower, c.getX(), c.getY(), c.heightLevel, 0,
				10, -1, 60);

		c.getPA().walkTo(-1,0); 
		c.getPA().playerWalk(c.pathX - 1, c.pathY, false);
		c.getDH().sendDialogues(696969, -1);