Added check for array to avoid php warning on import content by view