Do not use ternary in a require call