don't crash on nil input