If course because it's gboolean.
Can you also put a DEBUG_MSG with the function name at the beginning?