check if function_exists() before definining pluggable function