null check for when residences are being created