check if space exists