Checks if file has closing brackets.