Check whether the building contains a floor with the floorIndex
floorIndex
bool hasFloorIndex(int floorIndex) => _floors?.containsKey(floorIndex) ?? false;