use:

<?php

if (is_callable($bob)) {
echo 'Call bob'
}