Fixed return type for luv_has_ref