Also check for undefined orderBy