Could the record object have a `isBaseLayer()` function added to it?

Perhaps this would be more readable without the equality check to false `return !record.getLayer().isBaseLayer;` or with the above change as well `return !record.isBaseLayer();`