Changed the createServer method to fail on falsy values only