Bounds checking for getting a space.