This should be `graph.entities.hasOwnProperty` I think.