Check if callback is function or not