Hebrew in Bathroom

Can you read Hebrew in the bathroom? Not to pray but to learn just thinking the Hebrew and not saying it?

Its better not but if you want to be lenient you can unless you aren’t too familiar with the Hebrew language and reading this will teach the language which is an aspect of Torah learning.