It would be more efficient to just say "if profile.sites" or "if profile.sites.exists()", that way the database doesn't actually have to count them.  (Not that big a deal in this case.)