Optimised 'getHighestAttribute' method to use FP.