Changed an if {} else if {} into if {} else {} (removed unnecessary if)