moved check for lib_if to use isTruthy