- Added check if is_array if no styles or scripts are added to the list