you can use an if-statement but not like that. if you want to check if an object has a particular event listener you can use:
It wouldn't really work because you're saying if something is clicked, do one thing; else do something else. When you first enter the frame nothing is clicked, which would trigger the "else" part of the statement. What is it that you're trying to make happen?