Added b.misc.function_exists?

Just seems like a nice feature to have.