Implement singleton design pattern with strict null check