You do not need $result here. Same comment as ^. Please fix it below as well.