Check if layout is initialized in public methods