Update getEntityByProp to return an Array of Entity

According to @obiot wish, I updated the function to return Array of Entity instead of the first Entity found.
If there is no Entity found matching with the property and value, it will still return null.