Added sync:import:command

This method is called after Iterator::rewind() and Iterator::next() to check if the current position is valid.

But you do not have any default value for $this->valid, also rewind doesn't set any value, so this value is unset => it is evaluated to false, so you stopping iteration at your first try...

Is this class is tested? is it working?