added if in weird util stmt to check if not JSON when testing