Move the check editor function

This shouldn't be in main