Added references to the view in delegate methods so that it would be possible to distinguish between different picker views in the same view controller. Also added checks for empty arrays if the selection methods.