Removing unnecessary else clause