Check if a Twitter user exists

Since the new Twitter API I can’t figure out how to use it. I’m looking for a script that would check if a Twitter user exists. Before I could use I’d like the same thing pretty much with the new API.

Here is the new API. (Required authentication)