glib2: use guard if style