Added a hasSpace method to the XephyrInventoryWorkaround