Utility methods for arrays and hashes.