Add missing helper in 2.1

Signed-off-by: crynobone <crynobone@gmail.com>