Merged Amazon check into main if block