This is probably fine, especially since there's a default implementation. It's probably better to encapsulate this logic into a method so that it can be optimized.