Currently I\'m doing some unit tests which are executed from bash. Unit tests are initialized, executed and cleaned up in a bash script. This script usualy contains an init(
This tells you if it exists, but not that it's a function
fn_exists() { type $1 >/dev/null 2>&1; }