Fixing bad condition, if course visibility is hidden then return array().