#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.
Merge pull request #106 from supercow/tickets/21169/teams_should_return_false

#21169 teams function should return false when empty