refactoring, handling Twitter response edge case