added an if(isset()) to queryTwitter and paginateTwitter