Add check for invalid layout option