Use function available on older APIs instead of API detection