Extracted function to get the title
Removed redundant condition
Removed redundant method
Added break condition for cycle
Added message if no movie is selected