remove redundant else nil clause