author null check