This will always be true before the ternary. Should probably be `(method == 'POST' || method == 'PUT')` right?