checking for nils