Match return value to type in available()
Merge pull request #2057 from zfields/patch-1

Match return value to type in available()