Add check if it's defined first