Is any input validation required here?  e.g., if the doors data is invalid / missing?