Handle nil cases