fix wrecker build file, replace check for empty array with easier version