Created a solution that’s reverse compatible with lower PHP versions