Check if array key exists before stripping placeholder