checks for occupied space