#21169 teams function should return false when empty

This commit changes the teams function to only return an array of teams,
or a value puppet can evaluate as false - either '' or false.