Why make this a list? All you do below is check if you found any prerelease version (and modify the message accordingly) so a simple boolean flag should be sufficient.