refactor: improve tweets array parsing