Added if statement to prevent going to guest profile when there is no data