SyntaxFix
Write A Post
Hire A Developer
Questions
You should check for '' (empty string) before pushing into your array. Your array has elements that are empty strings. Then your album_text.length === 0 will work just fine.
''
album_text.length === 0