Attempting to perform basic syntax checks a different way