Question: how to check if i have xcode?
Answer: In Finder, select Go To Folder from the Go pull-down menu. (Or just type the Command-Shift-G keyboard shortcut.
This should open a new window. Type in /Developer/Applications and hit Go.
This should open a new Finder window. ... 
If you see it, you're done.