Changed redundant if statement to else