wrap check in 'tryCatch' just for extra insurance