Remove unnecessary switch/case and use a simple if/early return