conditional to check for field