fixed bug where isatom crashed when passed a nullptr(empty list)