better error handling

don’t try to move things that don’t exist

also added missing class var :)