Checking if attachment was added