Every so often it’s good practice to review the methods available in your framework just in case there is an overlooked method already available for something you are trying to do — even if it is code you’ve repeated numerous times. Actually especially when it is code you have repeated numerous times.