added if statement to check if last..team is recorded in player table (prevent page from breaking on pg load)