Check for a function before binding.
Fix dumb-assed error :)
Use nicer form.