Added the case with unnecessary else statements when returning within an if clause