chore(): cleaned up an if block