Added a helper method and a controller method to prevent errors when searching for stocks that are not in the databse.
Added comments for the newly created helper and controller methods.