Adding a fallback return empty array to avoid nil pointer dereference if
no views are detected