Fix motor definition check (previous one always returns true)