Changed API for isOccupiedX