type guard returns for firefox