Fix issue with function availability

Ran into this while checking something for issue #1245 ;-)