Removed useless else if condition