Check if pkglist file exists and is not empty
Warning: This comming could be wrong and will need to be fixed