Simplify module existence test