add spec when there is no key and use array_map
use single quote and fix CS
refactor with array_map