patched indent check function to be more descriptive