PHP if for user role on main site

I'm looking to add a php if statement that checks to see the user role on the main site in multisite (id=1). Please advise on a possible solution. Thanks.