Moved isconsistent() to where it belongs

I'm not sure why I ever had this function in its own file