This is not only a more expensive comparison, it is also incorrect. Multiple doors can have the same RefID. This TODO needs to be resolved.