Checks if a heap object is mutable.
bool isMutable(String heapId) { return getMutableObjects().contains(heapId); }