(someone) is toying with the idea of (doing something)
"Toying with" an idea means to consider whether or not you should do something. You're thinking that you might do it, but you're not sure yet.
For example:
I've been toying with the idea of studying abroad for a semester.
I'm toying with the idea of cutting it really short.
Follow PhraseMix