added in if statement to deal with empty report ids