Bash Test If Function Defined