Useful operations for array of objects