Added api existence check

Needed