Check for null before running accountService